package org.cnbi.utils.tools;

import java.util.HashMap;
import java.util.Map;

/**
 * Copyright © 2014中国经邦. All rights reserved.
 * @author 龚佳新
 * @date 2014年4月17日下午4:56:54
 * @cnbi-utils
 * 全局静态常量类
 */
public final class GlobalConstants {//PERIOD
	
	public final static String []SUBJECT = {
		"0001",
		"0002",
		"0003"
	};//
	
	/**
	 *  [0]==时期表维度
	 *  [1]==时点表维度
	 */
	public final static String subjctHelDim[] = {"ItemPoint","ItemPeriod"};
	
	public final static Map<String,String> DIMMAP = new HashMap<String,String>();
	
	static {
		//Map<String,String> map = new HashMap<String,String>();
		DIMMAP.put(SUBJECT[0], subjctHelDim[0]);
		DIMMAP.put(SUBJECT[1], subjctHelDim[1]);
	}
	
	public final static String DIMHELP = "DW_Dim";
	
	
	/**
	 * 时点表的
	 */
	public final static String POINT_SUBJECT = "0001";//
	/**
	 * 时期表的
	 */
	public final static String PERIOD_SUBJECT = "0002";//
	
	
	/**
	 * 科目余额表
	 */
	public final static String SUBJECT_KEMU = "0003";//
	/**
	 * 页面显示样式
	 */
	public final static String CSS = "css";//
	/**
	 * 登录用户
	 */
	public final static String LOGIN_USER = "loginUser";
	 /**
	 * 在线用户
	 */
	public final static String ON_LINE_USERS = "onLineUser";
	
	public static final String CONFIGFILE = "config";

	/**
	 * 人员类型
	 */
	public static Short User_Normal = 1;// 正常
	public static Short User_Forbidden = 0;// 禁用
	public static Short User_ADMIN = -1;// 超级管理员
	/**
	 * 日志级别定义
	 */
	public static Short Log_Leavel_INFO = 1;
	public static Short Log_Leavel_WARRING = 2;
	public static Short Log_Leavel_ERROR = 3;
	/**
	 * 日志类型
	 */
	public static Short Log_Type_LOGIN = 1; // 登陆
	public static Short Log_Type_EXIT = 2; // 退出
	public static Short Log_Type_INSERT = 3; // 插入
	public static Short Log_Type_DEL = 4; // 删除
	public static Short Log_Type_UPDATE = 5; // 更新
	public static Short Log_Type_UPLOAD = 6; // 上传
	public static Short Log_Type_OTHER = 7; // 其他

	/**
	 * 词典分组定义
	 */
	public static String TypeGroup_Database = "database";// 数据表分类

	/**
	 * 权限等级
	 */
	public static Short Function_Leave_ONE = 0;// 一级权限
	public static Short Function_Leave_TWO = 1;// 二级权限

	/**
	 * 权限等级前缀
	 */
	public static String Function_Order_ONE = "ofun";// 一级权限
	public static String Function_Order_TWO = "tfun";// 二级权限

	/**
	 * 新闻法规
	 */
	public static Short Document_NEW = 0; // 新建
	public static Short Document_PUBLICH = 0; // 发布

	/**
	 * 配置系统是否开启按钮权限控制
	 */
	public static boolean BUTTON_AUTHORITY_CHECK = false;
}
